import os
from distutils.cmd import Command
from distutils.errors import DistutilsFileError
#/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command


class cli(Command):
    description = "Create self distributable binary"
    user_options = []
    
    def initialize_options(self):
        pass
    
    def finalize_options(self):
        pass
    
    def sub_commands(self):
        pass
    
    def make_cli_tree(self,base_dir,files):
        self.mkpath(base_dir)
        dir_util.create_tree(base_dir,files,dry_run=False)

    def run(self):
        if not os.path.exists("opslog/cli/util/header.sh"):
            raise DistutilsFileError, "File opslog/cli/util/header.sh not found!"

        print "Helo"
